<template>
	<view class="app-title" :style="{width: widths}">
		<text class="title-text">{{text}}</text>
		<view class="title-line"></view>
	</view>
</template>

<script>
	export default {
		props:{
			text: {
				type: String,
				default: ""
			},
			widths: {
				type: String,
				default: '128rpx'
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.app-title {
	width: auto;
	height: 80rpx;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	.title-text {
		font-size: 32rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFBD47;
		line-height: 44rpx;
	}
	.title-line {
		width: 56rpx;
		height: 8rpx;
		box-shadow: -4rpx -4rpx 12rpx 0px rgba(70, 75, 86, 0.23), 4rpx 4rpx 12rpx 0px rgba(0, 0, 0, 0.83);
		border-radius: 2px;
		background-color: #FFBD47;
	}
}
</style>
